#include "AbstractFactory.h"

int AbstractFactory::DestroyProduct(Product* p)
{
	if (p)
		delete p;

	return 0;
}

Product* FactoryA::CreateProduct()
{
		cout << "enter FactoryA::CreateProduct\n";
		return new ProductA;
}

Product* FactoryB::CreateProduct()
{
		cout << "enter FactoryB::CreateProduct\n";
		return new ProductB;
}
